package cn.lili.modules.system.entity.dos;

import cn.lili.mybatis.model.BaseStandardEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 商品授权日志
 * </p>
 *
 * @author liuyang
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("li_auth_log")
@ApiModel(value="LiAuthLog", description="商品授权日志")
public class LiAuthLog extends BaseStandardEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "授权appID")
    private String authAppid;

    @ApiModelProperty(value = "类型（拉取商品，回调通知）")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "请求内容")
    @TableField("request_content")
    private String requestContent;

    @ApiModelProperty(value = "响应内容")
    @TableField("response_content")
    private String responseContent;

    @ApiModelProperty(value = "状态")
    @TableField("status")
    private String status;

    @ApiModelProperty(value = "请求时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("send_time")
    private Date sendTime;

    @ApiModelProperty(value = "响应时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("return_time")
    private Date returnTime;

    @ApiModelProperty(value = "响应时长")
    @TableField("return_duration")
    private String returnDuration;

    @ApiModelProperty(value = "重试次数")
    @TableField("retry_number")
    private Long retryNumber;

    @ApiModelProperty(value = "唯一标识")
    @TableField("flag")
    private String flag;

    @ApiModelProperty(value = "商品ID")
    @TableField("goods_id")
    private String goodsId;
}